/**
 * Created by Jimmy on 2018/12/11.
 */
<template>
  <div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  mounted() {
    if(this.$route.name === 'Hello'){
      let user = JSON.parse(window.localStorage.getItem('access-user'))
      if(user&&user.Token){
        this.$router.push({
          path: '/panel/project/management'
        })
      } else {
        this.$router.push({
          path: '/login'
        })
      }
    }

  }
}
</script>

<style scoped>
</style>
